package fr.mywiki.view.array.cell.entry;

import fr.mywiki.business.entry.EntryLite;
import fr.mywiki.business.entry.EntryManager;
import fr.mywiki.model.ejbAdapter.Value;
import fr.mywiki.view.array.cell.CellType;

/** Displays the identity of the last user who modified the entry */
public class LastAuthorDisplayer implements CellType {
	public String compute(Value value) {
		try {
			return EntryManager.getCurrentVersion((EntryLite) value).getAuthor().toString();
		} catch (Exception e) {
			return new String();
		} 
	}
}
